package models.chat.messages;

import models.ApplicationUser;
import models.chat.Channel;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;

/**
 * @author Konovalov_Nik
 */
@Entity
public class ChannelMessage extends Message {
    @ManyToOne
    public Channel to;

    public ChannelMessage(String text, ApplicationUser from, Channel to) {
        super(text, from.id);
        this.to = to;
    }
}
